// 导入：类型、接口、模块、组件、样式
import { Component, ReactNode } from "react";

class Son1 extends Component {
  render() {
    return <h1>son1</h1>;
  }
}

class Son2 extends Component {
  render() {
    return <h1>son2</h1>;
  }
}

interface Props {}
interface State {}
class Index extends Component<Props, State> {
  state = {
    num: 111,
  };
  render() {
    return (
      <fieldset>
        <legend>title</legend>

        <Son1 />
        <Son2 />
      </fieldset>
    );
  }
}
export default Index;
